<?php
    function getFactors($number){
        $arrays=[];
        for ($i=2;$i<=$number/2;$i++){
            if ($number % $i===0){
                $arrays[]=$i;
            }
        }
    return $arrays;
    }
    $num=24;
$a = getFactors($num);
print_r($a).PHP_EOL;

$a=[1,2,3];
$b=[1,'3',2];

print_r(array_merge($a,$b)).PHP_EOL;
var_dump($a==$b).PHP_EOL;
var_dump($a===$b).PHP_EOL;


$a=[
    "a"=>123,
    "b"=>456
];
$b=[
    "b"=>456,
    "a"=>123
];
echo "<br><hr>";
//和顺序有关
var_dump($a==$b);
//与顺序无关
var_dump($a===$b);


$x=1;
$y=2;
$name=$x==$y?"相等":"不相等";
echo $name;

$username=1;
$c=$username??"不存在";
echo $c;
// refusing to work with credential missing host field

var_dump($x<=>$y);
